#include <d3d9.h>
#include <d3dx9.h>
#include <Windows.h>
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#define CUSTOMFVF (D3DFVF_XYZRHW | D3DFVF_DIFFUSE)

class Renderer{
	IDirect3D9 * p_D3D;
	IDirect3DDevice9 * m_pkDevice;
	D3DXMATRIX m_mProjectionMatrix;
	LPDIRECT3DVERTEXBUFFER9 v_buffer;
private:
	HWND m_hWnd;
public:
	Renderer(HWND hWnd);
	~Renderer(void);
	void StartFrame();
	void EndFrame();
	void Draw();
	bool InitDX(HWND hWnd);
};